#pragma once
#include"AbstractBox2DTest.h"

class DemoApplyForce :public AbstractBox2DTest
{
public:
	createScene(DemoApplyForce)

	CREATE_FUNC(DemoApplyForce)

	bool init();
	
	virtual void box2DAppReady() override;

	void work(float dt);
private:
	b2Body * bird;
	b2Vec2 force;
	b2Vec2 impulse;
	b2Vec2 birdVelocity;
	bool isApplyForce = false;
};